package lab02.test04;
import java.util.Scanner;
public class Test04 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入姓名：");
        String name=sc.next();
        System.out.println("请输入号码：");
        String number=sc.next();
        System.out.println("请输入员工基础工资：");
        double salary=sc.nextDouble();
        System.out.println("请输入员工工作时长：");
        int hour=sc.nextInt();

      Employee e = new Employee(name,number,salary );
      GrowthSalary gs = new GrowthSalary(name,number, (float) salary,hour);
      gs.getGrowthsalary();

      System.out.println("姓名："+e.getName());
      System.out.println("号码:"+e.getNumber());
      System.out.println("基本工资："+e.getSalary());
      System.out.println("总工资："+e.getSalary()+gs.getGrowthsalary());
    }
}
